#include "TimeStep.h"
TimeStep::TimeStep()
{
	Update();
}
TimeStep::~TimeStep()
{
}

void TimeStep::Update()
{
	m_begin = high_resolution_clock::now();
}

double TimeStep::GetElapsedSecond()
{
	return GetElapsedTimeInMicroSec() * 0.000001;
}

double TimeStep::GetElapsedTimeInMilliSec()
{
	return GetElapsedTimeInMicroSec() * 0.001;
}

long long TimeStep::GetElapsedTimeInMicroSec()
{
	return duration_cast<microseconds>(high_resolution_clock::now() - m_begin).count();
}
